package kbl.language;

import java.util.TreeMap;
import java.util.Map.Entry;

public class testDFAStateWrapper {

	public int id;
	
	public String name;

	public boolean match;

	public TreeMap<String, testDFAStateWrapper> cc2DFAMap = new TreeMap<String, testDFAStateWrapper>();

	public testDFAStateWrapper(DFAState dfa) {
		this.id = dfa.getId();
		this.name = dfa.name;
		this.match = dfa.isMatch();
		for (Entry<CharacterClass, DFAState> entry : dfa.DFAMap.entrySet()) {
			cc2DFAMap.put(entry.getKey().toString(), new testDFAStateWrapper(
					entry.getValue().getId(), entry.getValue().isMatch(),  entry.getValue().name));
		}
	}

	public testDFAStateWrapper(int id, boolean match, String name) {
		this.id = id;
		this.match = match;
		this.name = name;
	}

}
